-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ONNX] Fix AveragePool attributes support #3235
Conversation
5217508
to
a24aa4a
Compare
f1cce24
to
fddc796
Compare
The current code has fix the count_include_pad test case and get the Inception_v4_vaiq_int8 passed. Next need to clean the code.
|
76c07ee
to
89ee8b7
Compare
|
4379be2
to
7027ace
Compare
Fix an AvgPool2dIntModule_basic crash for onnx. Get a new linalg e2e crash. Then Get a new tosa/stablehlo pass.
|
ff83f5b
to
f7f5a7f
Compare
- [ONNX] Fix padding attributes for onnx.AveragePool - [Linalg] Add countIncludePad false support for AtenAvgPool1/2dOp - [Linalg] Add an avg_pool2d countIncludePad False e2e tests - [Linalg] Fix conflict with AtenAvgPool3dOp - [Linalg] Fix e2e crash with AtenAvgPool1dOp - [Linalg] Add dynamic dim support for AtenAvgPool2dOp - [Linalg] Fix AvgPool2dDivisorOverrideModule crash
You should check whether this maps well to the existing pooling linalg structured ops: We have specialized version that are computationally more efficient. |
We are using the linalg::PoolingNchwSumOp not |
#3428 will need refer this patch |
FYI looks like there is a regression with average pool that needs to be looked at |
It's been fixed one my side. |
Issues was found here nod-ai/SHARK-ModelDev#643
count_include_pad pytorch implementation:
https://github.com/pytorch/pytorch/blob/4a6dfbe4806b361c43210dfd56db64c4097c66bb/aten/src/ATen/native/cpu/AvgPoolKernel.cpp#L78